Transform the 'menu' detail string to the 'popup' class
authorMatthias Clasen <mclasen@redhat.com>
Wed, 17 Nov 2010 06:38:40 +0000 (01:38 -0500)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:39:15 +0000 (15:39 +0100)
gtk/gtkstyle.c

index 8981613a67169b5a7179c9b4c0d4e34861ed778c..4acab1b4e39aba2bfa040f37e4df0f3d4a498b11 100644 (file)
@@ -1793,6 +1793,11 @@ transform_detail_string (const gchar     *detail,
       gtk_style_context_add_class (context, "menuitem");
       gtk_style_context_add_class (context, "menu");
     }
+  else if (strcmp (detail, "menu") == 0)
+    {
+      gtk_style_context_add_class (context, "popup");
+      gtk_style_context_add_class (context, "menu");
+    }
   else if (strcmp (detail, "accellabel") == 0)
     gtk_style_context_add_class (context, "accelerator");
   else if (strcmp (detail, "menubar") == 0)